package StudyCode.summary.mycollection;

import java.util.Set;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class SearchForCommonStringBetweenTwoSet {
	public static String searchForCommonString(Set<String> s1, Set<String> s2) {
		String matched = "";
		for (String s1Word : s1)
			if (s2.contains(s1Word)) {
				matched = s1Word;
				break;
			}
		return matched;
	}
}
